package ooday04;
/**
 * @author Pxl
 */
public abstract class  Animal {
    String name;
    int age;
    String gender;
    Animal(String name,int age,String gender){
        this.name=name;
        this.age=age;
        this.gender=gender;
    }

    /**
     * 抽象方法eat
     */
    abstract void eat();
    void sleep(){
        System.out.println(name+age+"岁了是"+gender+"的,"+"现在正在睡觉");
    }

}
